home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Toolbox / Visual Basic Toolbox (P.I.E.)(1996).ISO / mail / mailx6 / _setup.1 / SESSIONF.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1996-04-11  |  5.8 KB  |  205 lines

  1. VERSION 2.00
  2. Begin Form SessionForm 
  3.    Caption         =   "Mail X Session Form"
  4.    ClientHeight    =   3075
  5.    ClientLeft      =   1530
  6.    ClientTop       =   1845
  7.    ClientWidth     =   6390
  8.    Height          =   3450
  9.    Left            =   1485
  10.    LinkTopic       =   "Form2"
  11.    ScaleHeight     =   3075
  12.    ScaleWidth      =   6390
  13.    Top             =   1515
  14.    Width           =   6480
  15.    Begin MForm MForm1 
  16.       Height          =   255
  17.       Left            =   120
  18.       MXFormName      =   "FormTag1"
  19.       Top             =   120
  20.       Width           =   2295
  21.    End
  22.    Begin MReci MReci1 
  23.       AddRecipientClass=   1  '1- TO:
  24.       AddressCaption  =   "Mail X Address Caption "
  25.       AddressEditNum  =   3
  26.       BindString      =   "MMsg1"
  27.       DetailModifiable=   -1  'True
  28.       DisplayErrors   =   0   'False
  29.       FetchType       =   1  '1- Msg. Recipient
  30.       Height          =   420
  31.       Left            =   5400
  32.       ResolveDialog   =   -1  'True
  33.       Top             =   1320
  34.       Width           =   420
  35.    End
  36.    Begin MMsg MMsg1 
  37.       BindString      =   "MSess1"
  38.       BodyAsFile      =   0   'False
  39.       DisplayErrors   =   0   'False
  40.       DisplaySendDialog=   0   'False
  41.       EnvelopeOnly    =   0   'False
  42.       FetchMsgType    =   ""
  43.       Height          =   420
  44.       Left            =   3720
  45.       MarkAsRead      =   0   'False
  46.       SortMsg         =   0   'False
  47.       SuppressAttach  =   0   'False
  48.       TimeFormat      =   "%m/%d/%y"
  49.       Top             =   1320
  50.       UnreadOnly      =   0   'False
  51.       Width           =   420
  52.       WorkingMsg      =   0  '0- Inbox Message
  53.    End
  54.    Begin MSess MSess1 
  55.       DefaultPath     =   ""
  56.       DisplayErrors   =   -1  'True
  57.       DownLoadMsg     =   -1  'True
  58.       Height          =   420
  59.       Left            =   5520
  60.       LogonUI         =   -1  'True
  61.       Mail_Type       =   0  '0- NONE
  62.       MapiCustomLibName=   ""
  63.       NewSession      =   -1  'True
  64.       Password        =   ""
  65.       Top             =   120
  66.       User            =   ""
  67.       Width           =   420
  68.    End
  69.    Begin CommandButton Command3 
  70.       Caption         =   "Delete Recipient"
  71.       Height          =   375
  72.       Left            =   4320
  73.       TabIndex        =   10
  74.       Top             =   2520
  75.       Width           =   1815
  76.    End
  77.    Begin CommandButton Command2 
  78.       Caption         =   "Fetch Next"
  79.       Height          =   375
  80.       Left            =   2160
  81.       TabIndex        =   9
  82.       Top             =   2520
  83.       Width           =   2055
  84.    End
  85.    Begin CommandButton Command1 
  86.       Caption         =   "Fetch First"
  87.       Height          =   375
  88.       Left            =   240
  89.       TabIndex        =   8
  90.       Top             =   2520
  91.       Width           =   1695
  92.    End
  93.    Begin CommandButton BtnAddressDialog 
  94.       Caption         =   "Address Dialog"
  95.       Height          =   375
  96.       Left            =   4320
  97.       TabIndex        =   4
  98.       Top             =   1920
  99.       Width           =   1815
  100.    End
  101.    Begin CommandButton BtnAdd 
  102.       Caption         =   "Add Resolved Names"
  103.       Height          =   375
  104.       Left            =   2160
  105.       TabIndex        =   3
  106.       Top             =   1920
  107.       Width           =   2055
  108.    End
  109.    Begin CommandButton BtnResolve 
  110.       Caption         =   "ResolveNames"
  111.       Height          =   375
  112.       Left            =   240
  113.       TabIndex        =   2
  114.       Top             =   1920
  115.       Width           =   1695
  116.    End
  117.    Begin TextBox szResolveText 
  118.       Height          =   330
  119.       Left            =   2220
  120.       TabIndex        =   1
  121.       Top             =   660
  122.       Width           =   3930
  123.    End
  124.    Begin Label nCount 
  125.       Height          =   315
  126.       Left            =   1995
  127.       TabIndex        =   7
  128.       Top             =   1260
  129.       Width           =   795
  130.    End
  131.    Begin Label Label3 
  132.       Caption         =   "Recipient Count:"
  133.       Height          =   300
  134.       Left            =   180
  135.       TabIndex        =   6
  136.       Top             =   1260
  137.       Width           =   1665
  138.    End
  139.    Begin Label Label2 
  140.       Caption         =   "(Introduce a List: Name1;Name2; etc)"
  141.       Height          =   285
  142.       Left            =   2205
  143.       TabIndex        =   5
  144.       Top             =   285
  145.       Width           =   3420
  146.    End
  147.    Begin Label Label1 
  148.       Caption         =   "Address To Resolve:"
  149.       Height          =   285
  150.       Left            =   150
  151.       TabIndex        =   0
  152.       Top             =   690
  153.       Width           =   1995
  154.    End
  155. Sub BtnAdd_Click ()
  156.     MReci1.Action = ACTION_ADDRECIPIENT
  157.     UpdateCount
  158.     UpdateText
  159. End Sub
  160. Sub BtnAddressDialog_Click ()
  161.     MReci1.Action = ACTION_ADDRESS
  162.     UpdateCount
  163.     UpdateText
  164. End Sub
  165. Sub BtnResolve_Click ()
  166.     MReci1.ResolveName = szResolveText
  167.     szResolveText = MReci1.ResolveName
  168. End Sub
  169. Sub Command1_Click ()
  170.     If MReci1.RecipientCount > 0 Then
  171.         MReci1.RecipientNum = 1
  172.         UpdateText
  173.     Else
  174.         MsgBox "Mail X Recipient Control is Empty"
  175.     End If
  176. End Sub
  177. Sub Command2_Click ()
  178.     NextR = MReci1.RecipientNum + 1
  179.     If NextR <= MReci1.RecipientCount Then
  180.         MReci1.RecipientNum = NextR
  181.         UpdateText
  182.     Else
  183.         MsgBox "Last Recipient Reached"
  184.     End If
  185. End Sub
  186. Sub Command3_Click ()
  187.     MReci1.Action = ACTION_DEL_RECIPIENT
  188.     UpdateCount
  189.     UpdateText
  190. End Sub
  191. Sub Form_Load ()
  192.     Load SystemX
  193.     SystemX.MSMAIL = True
  194.     SystemX.Show 1
  195.     MSess1.Logon = True
  196.     If MSess1.Logon = False Then End
  197.     UpdateCount
  198. End Sub
  199. Sub UpdateCount ()
  200.     nCount = MReci1.RecipientCount
  201. End Sub
  202. Sub UpdateText ()
  203.     szResolveText = MReci1.RecipientName
  204. End Sub
  205.